<?php
/**
 * 手机站首页
 *
 *
 *
 *
 * @copyright  Copyright (c) 2007-2013 ShopNC Inc. (http://www.shopnc.net)
 * @license    http://www.shopnc.net
 * @link       http://www.shopnc.net
 * @since      File available since Release v1.1
 */
defined('InShopNC') or exit('Access Invalid!');

class indexControl extends MobileControl{
	public function __construct(){
		parent::__construct();
	}
	
	public function indexOp(){
		$now_time = time();
		$sql = "SELECT * FROM #__adv WHERE ap_id = '462' AND is_allow = '1' AND adv_start_date < $now_time AND adv_end_date > $now_time ORDER BY slide_sort ASC";
		$adv = Db::queryAll($sql);
		Tpl::output('adv',$adv);
		Tpl::showpage('index');
	}
}